import 'dart:async';

import 'package:flutter/material.dart';

// class MainProvider extends ChangeNotifier{
//   double count=0.0;
//   add(){
//     count++;
//     notifyListeners();
//   }
//   Timer timer;
//   recoredTime(){
//     timer = Timer.periodic(Duration(microseconds: 100), (timer) { 
//       count+=0.1;
//       notifyListeners();
//     }); 
//   }
// }
class MainProvider extends ChangeNotifier{
  ScrollController scrollController=ScrollController();
  bool isFavoite=false;
  changeFav(){
    isFavoite=!isFavoite;
    notifyListeners();
  }
  ReplyDetail reply=ReplyDetail(
    replyAva: "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1634187719,838664734&fm=15&gp=0.jpg",
    makerName: "郭之精",
    replyContent: "青春不败，建哥最帅;大苏打大大大苏打大苏打盛大的",
    dateTime: DateTime.now()
  );
}
class ReplyDetail{
  String replyAva;
  String makerName;
  String replyContent;
  DateTime dateTime;
  ReplyDetail({this.replyAva,this.makerName,this.replyContent,this.dateTime});
}